var banlanceDAO = require('../dao/balance')


function testSelect() {
    banlanceDAO.selectByProductId(2, function (rows) {
        console.log(rows)
    })
}


function testUpdate() {

    console.log("test for update")
    var balanceObj = {
          stock_id:1,
          product_id:1,
          quantity:130
    }

    banlanceDAO.update(balanceObj,function (result) {
        console.log(result)
    })
}




testUpdate();